package com.ruoyi.modules.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.modules.mapper.ConstructionApplySoilMapper;
import com.ruoyi.modules.domain.ConstructionApplySoil;
import com.ruoyi.modules.service.IConstructionApplySoilService;

/**
 * 工地用土信息Service业务层处理
 * 
 * @author ssh
 * @date 2024-12-15
 */
@Service
public class ConstructionApplySoilServiceImpl implements IConstructionApplySoilService 
{
    @Autowired
    private ConstructionApplySoilMapper constructionApplySoilMapper;

    /**
     * 查询工地用土信息
     * 
     * @param ID 工地用土信息主键
     * @return 工地用土信息
     */
    @Override
    public ConstructionApplySoil selectConstructionApplySoilByID(String ID)
    {
        return constructionApplySoilMapper.selectConstructionApplySoilByID(ID);
    }

    /**
     * 查询工地用土信息列表
     * 
     * @param constructionApplySoil 工地用土信息
     * @return 工地用土信息
     */
    @Override
    public List<ConstructionApplySoil> selectConstructionApplySoilList(ConstructionApplySoil constructionApplySoil)
    {
        return constructionApplySoilMapper.selectConstructionApplySoilList(constructionApplySoil);
    }

    /**
     * 新增工地用土信息
     * 
     * @param constructionApplySoil 工地用土信息
     * @return 结果
     */
    @Override
    public int insertConstructionApplySoil(ConstructionApplySoil constructionApplySoil)
    {
        return constructionApplySoilMapper.insertConstructionApplySoil(constructionApplySoil);
    }

    /**
     * 修改工地用土信息
     * 
     * @param constructionApplySoil 工地用土信息
     * @return 结果
     */
    @Override
    public int updateConstructionApplySoil(ConstructionApplySoil constructionApplySoil)
    {
        return constructionApplySoilMapper.updateConstructionApplySoil(constructionApplySoil);
    }

    /**
     * 批量删除工地用土信息
     * 
     * @param IDs 需要删除的工地用土信息主键
     * @return 结果
     */
    @Override
    public int deleteConstructionApplySoilByIDs(String[] IDs)
    {
        return constructionApplySoilMapper.deleteConstructionApplySoilByIDs(IDs);
    }

    /**
     * 删除工地用土信息信息
     * 
     * @param ID 工地用土信息主键
     * @return 结果
     */
    @Override
    public int deleteConstructionApplySoilByID(String ID)
    {
        return constructionApplySoilMapper.deleteConstructionApplySoilByID(ID);
    }
}
